package engine.mail;

import java.util.Collection;

import org.springframework.core.io.Resource;

import engine.content.IContent;

public interface IMailMessage<T> {
	    public void setSender(String sender) throws Exception;
	    public void setReplyTo(String replyTo)  throws Exception;
	    public void setTo(Collection<String> to)  throws Exception;
	    public void setSubject(String subject)  throws Exception;
	    public void setHtmlBody(String htmlBody)  throws Exception;
	    public void addHeader(String header, String value)  throws Exception;
	    public T getMessage();
	    public void setMessage(T message);
	    public void addAttachment(IContent content, Resource res, IMailMessage message, String fileName, String fileId)  throws Exception;
}
